import { ref } from "vue";
import { defineStore } from "pinia";

// AI对话
export const useAI = defineStore("AI",() => {
    // 对话记录
    const chat = ref([
        "你好，我是AI机器人，有什么可以帮助您？",
    ]);

    const clearChat = () => {
        chat.value = [];
    }

    return {
        chat,
        clearChat
    }
}, {
    persist: true,
})